package com.hbnu.ojcodesandbox.unsafe;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 内存占用不释放
 * @Author: Hu Bowen
 */
public class MemoryError {

    public static void main(String[] args) {
        List<byte[]> bytes = new ArrayList<>();
        while (true) {
            bytes.add(new byte[10000]);
        }
    }
}
